<?php

include_once('./../configs/application.php');
$db = new Database( DB_DSN, DB_USER, DB_PASS );
$db->query( "DELETE u.* FROM users AS u INNER JOIN account_activations AS aa ON u.id = aa.user_id WHERE u.created < NOW() - INTERVAL 1 WEEK AND aa.activation_key IS NOT NULL" )->execute();
?>


